@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>文档列表</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-2">
                                <div class="input-group">
                                    <div class="input-group-btn">
                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle"
                                                type="button">
                                            分类
                                        </button>
                                    </div>
                                    <input class="form-control" id="pName" name="pName" type="text" readonly="readonly"
                                           onclick="Documents.showCategorySelectTree()"
                                           style="background-color: #ffffff !important;"/>
                                    <!-- 分类的选择框 -->
                                    <div id="categoryMenu" class="menuContent" style="display: none;position: absolute; z-index: 200;">
                                        <ul id="categoryMenuTree" class="ztree tree-box" style="width: 245px !important;"></ul>
                                    </div>
                                    <input class="form-control" type="hidden" id="categoryPId" value="">
                                    <input class="form-control" type="hidden" id="categoryId" value="">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <#SelectCon id="format" name="文档类型" >
                                    <option value="">全部</option>
                                    <option value="WORD">WORD</option>
                                    <option value="EXCEL">EXCEL</option>
                                    <option value="PPT">PPT</option>
                                    <option value="PDF">PDF</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-3">
                                <#SelectCon id="priceType" name="收费类型">
                                    <option value="">全部</option>
                                    <option value="0">免费文档</option>
                                    <option value="1">会员免费</option>
                                    <option value="2">会员优惠</option>
                                </#SelectCon>
                            </div>

                        </div>
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="tag" name="标签" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="documentName" name="文档名" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Documents.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="DocumentsTableToolbar" role="group">
                            @if(shiro.hasPermission("/documents/add")){
                            <#button name="添加" icon="fa-edit" clickFun="Documents.openDocuments()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/documents/update")){
                            <#button name="修改" icon="fa-edit" clickFun="Documents.openDocumentsDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/documents/online")){
                            <#button name="批量上架" icon="fa-plus" clickFun="Documents.online()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/documents/cancel_online")){
                            <#button name="批量下架" icon="fa-remove" clickFun="Documents.cancelOnline()" space="true"/>
                            @}
                            <#button name="预览" icon="fa-eye" clickFun="Documents.preview()" space="true"/>
                        </div>
                        <#table id="DocumentsTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/documents/documents.js"></script>
@}
